//原型式继承

// function object(){
//     function F(){}
//     F.prototype=o
//     return new F()
// }

//------------------------------//

var person={
    name='强',
    colors:['red','green','bue']
}
var person1=Object.create(person,{
    name:{
        value:'老陈'
    }
})
var person2=Object.create(person,{
    name:{
        value:'林颖'
    }
})
person1.colors.push('pink')
console.log(person1.name);
console.log(person2.name);
console.log(person1.colors);
console.log(person2.colors);